package Demo1;

public class CartItem {
    public String name;
    public double price;

    public void addItem(String name,double price){
        this.name=name;
        this.price=price;
    }
}
